package org.sport.dbInterface;

import org.sport.model.entityModel.LocationtableEntity;
import org.sport.model.entityModel.SporthistorytableEntity;

import java.util.List;

/**
 * Created by Allen on 2017/10/11.
 */
public interface LocOperation {

    /**
     * 通过list增加
     */
    boolean     addLocationList(List<LocationtableEntity> track);


    /**
     * 增
     */
    boolean     addOneLocation(LocationtableEntity locus);


    /**
     * 删,One By One
     */
    boolean     delOneLocation(LocationtableEntity locus);


    /**
     * 通过查找运动历史记录Id来删除
     * @param spohisid
     * @return
     */
    boolean     delLocationBySpoHisId(SporthistorytableEntity spohisid);

    /**
     * 改
     */

    /**
     * 查
     */
    LocationtableEntity     findById(int id);


    /**
     * 返回对应sportid的经纬度list
     */
    List<LocationtableEntity>   findBySpoHisId(SporthistorytableEntity spohisid);



}
